import java.util.Scanner;
public class zhuzhu {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请出拳：");
        System.out.println("Note: 出1为石头\n出2为剪刀\n出3为布");
        int myChoice = sc.nextInt();
        switch (myChoice) {
            case 1:
                System.out.println("你出的是石头");
                break;
            case 2:
                System.out.println("你出的是剪刀");
                break;
            case 3:
                System.out.println("你出的是布");
            default:
                System.out.println("请按提示正确输入！");
                break;
        }
        System.out.println("轮到电脑出拳");
        int pcChoice = (int) (Math.random() * 2 + 1);
        switch (pcChoice) {
            case 1:
                System.out.println("电脑出的是石头");
                break;
            case 2:
                System.out.println("电脑出的是剪刀");
                break;
            case 3:
                System.out.println("电脑出的是布");
            default:
                System.out.println("电脑输入错误！");
                break;
        }
        int mp = myChoice - pcChoice;
        switch (mp) {
            case -1:
            case 2:
                System.out.println("你赢了！");
                break;
            case 0:
                System.out.println("平局");
                break;
            case 1:
            case -2:
                System.out.println("你输了！");
                break;
        }
    }
}